﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="Poa_historico.aspx.vb" Inherits="Devida_Poa_historico" Theme="Yahoo-Ocean" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <style type="text/css">

        .style2
        {
            width:100%;
            margin-top: 0px;
        }
        .Frm_Fondo_fila_linea {
	BACKGROUND-COLOR: #1867B2;
            width: 0;
        }
        .style14
        {
            BACKGROUND-COLOR: #199A44;
            width: 100px;
        }
        .style17
        {
            BACKGROUND-COLOR: #199A44;
            width: 78px;
        }
        .style32
    {
        BACKGROUND-COLOR: #199A44;
        width: 196px;
    }
    .style33
    {
        BACKGROUND-COLOR: #199A44;
        width: 139px;
    }
    .style36
    {
        width: 48px;
    }
    .style38
    {
        width: 88px;
    }
    .style39
    {
        width: 27px;
    }
    .style40
    {
        width: 24px;
    }
    .style41
    {
        width: 45px;
    }
    .style42
    {
        width: 64px;
    }
    </style>
   <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />

     <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
     <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label ID="lb_name" runat="server" Font-Names="Arial" Font-Size="17px" ForeColor="white"
        Text="Poa Histórico" Font-Bold="True"></asp:Label>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
      <table>                            
          <tr>
                                                    <td>
                                                        <table  cellpadding="0" cellspacing="0" class="style2" >
                                                            <tr>
                                                                <td>
                                                                    <div style="border: solid 1px #99aabd; width: 900px;  overflow: auto;"
                                                                    align="center">
                                                                    <table cellpadding="0" cellspacing="0" class="style2">
                                                                        <tr>
                                                                            <td align="center" class="style33"; style="border:0.5px solid #FFFFFF">
                                                                                   <asp:Label ID="Label1" runat="server" CssClass="frm_formato" ForeColor="White" 
                                                                                    Text="PPER"></asp:Label>
                                                                                    </td><td align="center" class="style33"; style="border:0.5px solid #FFFFFF">
                                                                                <asp:Label ID="Label12" runat="server" CssClass="frm_formato" ForeColor="White" 
                                                                                    Text="Proyectos / Actividades"></asp:Label>                                                                                  
                                                                            </td>                                                                          
                                                                            <td align="center" class="style14"; style="border:0.5px solid #FFFFFF">
                                                                                <asp:Label ID="Label20" runat="server" CssClass="frm_formato" ForeColor="White" 
                                                                                    Text="monitoreador"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    </div>
                                                                </td>
                                                            </tr>                                                           
                                                         </table>
                                                    </td>
                                                 </tr>          
          <tr>
                     <td>
                     <table cellpadding="0" cellspacing="0" style="width: 900px; height: 300px;">
                        <tr>
                            <td>
                                <div style="border: solid 1px #99aabd; width: 900px; height: 350px; overflow: auto;" align="center">
                                         <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                             <ContentTemplate>
                                                 <div id="div_grilla" align="center">
                                                     <asp:GridView ID="gv_impresion" runat="server" AutoGenerateColumns="False" CellPadding="0"
                                                         CssClass="grid" Font-Size="8pt" GridLines="None" Width="900px">
                                                         <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" />
                                                         <Columns>
                                                             <asp:TemplateField>
                                                                 <HeaderTemplate>
                                                                     Nombre</HeaderTemplate>
                                                                 <ItemStyle Width="350px" HorizontalAlign="Left" />
                                                                 <ItemTemplate>
                                                                     <asp:Label ID="Nombre2" runat="server" Text='<%# Eval("Nombre") %>'></asp:Label>
                                                                     <asp:HiddenField ID="POA" runat="server" Value='<%# Eval("POA") %>' />
                                                                 </ItemTemplate>
                                                             </asp:TemplateField>
                                                             <asp:BoundField HeaderText="Tipo Ingreso" DataField="TIPO_CAMBIO" ItemStyle-VerticalAlign="Top"
                                                                 ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />   
                                                             <asp:BoundField HeaderText="Versión" DataField="Version" ItemStyle-HorizontalAlign="Left"
                                                                 ItemStyle-VerticalAlign="Top" ItemStyle-Width="10px" />       
                                                             <asp:BoundField HeaderText="Año Firma" DataField="ANHIO_FIRMA_POA" ItemStyle-VerticalAlign="Top"
                                                                 ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px" />
                                                             <asp:BoundField HeaderText="Mes Firma" DataField="MES_FIRMA_POA" ItemStyle-VerticalAlign="Top"
                                                                 ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px" />                                                             
                                                             <asp:BoundField HeaderText="documento" DataField="DOCUMENTO" ItemStyle-VerticalAlign="Top"
                                                                 ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />
                                                             <asp:BoundField HeaderText="Estado" DataField="ESTADO" ItemStyle-VerticalAlign="Top"
                                                                 ItemStyle-HorizontalAlign="Left" ItemStyle-Width="70px" />
                                                             <asp:CommandField ShowSelectButton="True" Visible="False" />
                                                         </Columns>
                                                         <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
                                                         <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
                                                     </asp:GridView>
                                                 </div>
                                             </ContentTemplate>
                                             <Triggers>
                                                 <asp:AsyncPostBackTrigger ControlID="gv_impresion" EventName="SelectedIndexChanged" />
                                             </Triggers>
                                         </asp:UpdatePanel>
                                    </div>     
                                             <div id="print_area2" style="width: 100%; display: none;"" >
                                                       
                                                      <asp:Label ID="Label3" runat="server" Font-Names="Arial" align="Right"
                                                        Font-Size="17px" ForeColor="black" Text="Lista de Proyectos Asignados " 
                                                        Font-Bold="True" ></asp:Label>
                                                        <asp:Label ID="LBLE" runat="server">&nbsp;</asp:Label>
                                                   <asp:GridView ID="gv_doc" runat="server" AutoGenerateColumns="False" BorderColor="Black" 
                                                    CellPadding="0" CssClass="grid" Font-Size="8pt" GridLines="both" Width="1400px">                                                    
                                                    <Columns> 
                                                    <asp:TemplateField >	
                <HeaderTemplate >PPER</HeaderTemplate>
                <ItemStyle  Width="50px" HorizontalAlign="Left" />            
	                <ItemTemplate>
                        <asp:Label ID="Nombre2" runat="server" text='<%# Eval("Nombre") %>' ></asp:Label>
	                    <asp:HiddenField ID="POA" runat="server" Value='<%# Eval("POA") %>' />
                        <asp:HiddenField ID="NOMBRE" runat="server" Value='<%# Eval("NOMBRE") %>' />
	                </ItemTemplate>
	            </asp:TemplateField>
                <asp:BoundField HeaderText="Nombre" DataField="Nombre" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top" ItemStyle-Width="200px" />
                <asp:BoundField HeaderText="Versión" DataField="Version"  ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top" ItemStyle-Width="700px"/>
                <asp:BoundField HeaderText="Ubigeo" DataField="Ubigeo" ItemStyle-HorizontalAlign="Right" ItemStyle-verticalAlign="Top" ItemStyle-Width="75px" DataFormatString="{0:N0}" />
                <asp:BoundField HeaderText="Objetivo" DataField="OBJETIVO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" DataFormatString="{0:N0}" />
                <asp:BoundField HeaderText="Snip"   DataField="SNIP" ItemStyle-VerticalAlign="Top"   ItemStyle-HorizontalAlign="Left"  ItemStyle-Width="100px" />               
                <asp:BoundField HeaderText="Fecha Viabilidad" DataField="FECHA_VIABILIDAD" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"  ItemStyle-Width="100px"/>
                <asp:BoundField HeaderText="Convenio" DataField="CONVENIO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
               <asp:BoundField HeaderText="Producto" DataField="PRODUCTO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
               
                <asp:BoundField HeaderText="Estado" DataField="ESTADO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                 <asp:BoundField HeaderText="Pper" DataField="Pper" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Ambito" DataField="AMBITO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Ejecutor" DataField="EJECUTOR" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Monto Invertido" DataField="MONTO_TOTAL_INVERTIDO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Monto Invertido Año" DataField="MONTO_INV_ANHIO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Año Firma" DataField="ANHIO_FIRMA_POA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                   <asp:BoundField HeaderText="Mes Firma" DataField="MES_FIRMA_POA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                    <asp:BoundField HeaderText="Tipo Ingreso" DataField="TIPO_CAMBIO_POA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="META" DataField="META" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="Unidad" DataField="unidad1" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="META2" DataField="META2" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="Unidad2" DataField="unidad2" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="META3" DataField="META3" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="Unidad3" DataField="unidad3" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="documento" DataField="DOCUMENTO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
               
                 <asp:CommandField ShowSelectButton="True" Visible="False" />
                                                    </Columns>
                                                    
                                                </asp:GridView>
                                               </div>   
                                                <div id="Div1" style="width: 100%; display: none;"" >
                                                       
                                                      <asp:Label ID="Label2" runat="server" Font-Names="Arial" align="Right"
                                                        Font-Size="17px" ForeColor="black" Text="Lista de Proyectos Asignados " 
                                                        Font-Bold="True" ></asp:Label>
                                                        <asp:Label ID="Label4" runat="server">&nbsp;</asp:Label>
                                                   <asp:GridView ID="DOC_2" runat="server"  AutoGenerateColumns="False" BorderColor="Black" 
                                CellPadding="0" Font-Size="8pt" GridLines="both" Width="900px" HeaderStyle-BackColor="#66CC99"> 
                               
                                                    <Columns>                
                <asp:TemplateField >	
                <HeaderTemplate >PPER</HeaderTemplate>
                <ItemStyle  Width="50px" HorizontalAlign="Left" />            
	                <ItemTemplate>
                        <asp:Label ID="Nombre2" runat="server" text='<%# Eval("Nombre") %>' ></asp:Label>
	                    <asp:HiddenField ID="POA" runat="server" Value='<%# Eval("POA") %>' />
                        <asp:HiddenField ID="NOMBRE" runat="server" Value='<%# Eval("NOMBRE") %>' />
	                </ItemTemplate>
	            </asp:TemplateField>
                <asp:BoundField HeaderText="Nombre" DataField="Nombre" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top" ItemStyle-Width="200px" />
                <asp:BoundField HeaderText="Versión" DataField="Version"  ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top" ItemStyle-Width="700px"/>
                <asp:BoundField HeaderText="Ubigeo" DataField="Ubigeo" ItemStyle-HorizontalAlign="Right" ItemStyle-verticalAlign="Top" ItemStyle-Width="75px" DataFormatString="{0:N0}" />
                <asp:BoundField HeaderText="Objetivo" DataField="OBJETIVO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="left" ItemStyle-Width="75px" DataFormatString="{0:N0}" />
                <asp:BoundField HeaderText="Snip"   DataField="SNIP" ItemStyle-VerticalAlign="Top"   ItemStyle-HorizontalAlign="Left"  ItemStyle-Width="100px" />               
                <asp:BoundField HeaderText="Fecha Viabilidad" DataField="FECHA_VIABILIDAD" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"  ItemStyle-Width="100px"/>
                <asp:BoundField HeaderText="Convenio" DataField="CONVENIO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
               <asp:BoundField HeaderText="Producto" DataField="PRODUCTO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
              
                <asp:BoundField HeaderText="Estado" DataField="ESTADO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                 <asp:BoundField HeaderText="Pper" DataField="Pper" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Ambito" DataField="AMBITO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Ejecutor" DataField="EJECUTOR" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Monto Invertido" DataField="MONTO_TOTAL_INVERTIDO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Monto Invertido Año" DataField="MONTO_INV_ANHIO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                  <asp:BoundField HeaderText="Año Firma" DataField="ANHIO_FIRMA_POA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" />                 
                   <asp:BoundField HeaderText="Mes Firma" DataField="MES_FIRMA_POA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" />                 
                    <asp:BoundField HeaderText="Tipo Ingreso" DataField="TIPO_CAMBIO_POA" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="META" DataField="META" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="60px" />                 
                     <asp:BoundField HeaderText="Unidad" DataField="unidad1" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="META2" DataField="META2" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="60px" />                 
                     <asp:BoundField HeaderText="Unidad2" DataField="unidad2" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="META3" DataField="META3" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="60px" />                 
                     <asp:BoundField HeaderText="Unidad3" DataField="unidad3" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
                     <asp:BoundField HeaderText="documento" DataField="DOCUMENTO" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />                 
               
                 <asp:CommandField ShowSelectButton="True" Visible="False" />
                                                    </Columns>                                                    
                                                </asp:GridView>
                                               </div>                                                          
                          </td>
                        </tr>
                    </table>
                     </td>
         </tr>    
          <tr><td>
        <table width="900px">
        <tr>
                <td width="90px"><asp:ImageButton id="ibConsultar" runat="server" ImageUrl="~/Imagenes/btnConsultar.png" ToolTip="Consultar Plan de Trabajo"/></td>
                <td width="90px"></td>
                <td width="90px" align="left"></td> 
                <td width="550px"> </td>
                <td width="50px" align="right" >
                <td width="50px" align="right" >
                 <asp:ImageButton ID="ibn_salir"  runat="server"  ImageUrl="~/Imagenes/btnSalir.png" ToolTip="Sale" />              
                 </td> 
                </tr></table>        
        </td></tr>
    </table>
  <uc1:Alerta id="alerta" runat="server"></uc1:Alerta>

</asp:Content>

